package com.share.tool.devops.enums;

/**
 * @author 01401061 - 孙艳强
 * @date 2020/12/4 20:25
 */
public enum UrlGCodeMenu {
    HEALTH_CHECK("healthCheck", "监控检查");

    public String code;
    public String name;

    private UrlGCodeMenu(final String code, final String name) {
        this.code = code;
        this.name = name;
    }

    public static UrlGCodeMenu toEnum(final String code) {
        for (final UrlGCodeMenu tag : UrlGCodeMenu.values()) {
            if (tag.code.equals(code)) {
                return tag;
            }
        }
        return null;
    }
}
